﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="UserType.aspx.cs" Inherits="ESCHOOL.admin.WebForm11" Title="User Type" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 76%;
        }
        .style4
        {
            height: 44px;
            width: 269px;
        }
        .style5
        {
            width: 160px;
        }
        .style6
        {
            height: 44px;
            width: 160px;
        }
        .style7
        {
            width: 269px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
        <table style="width:100%">
            <tr>
                <td class="style5">
                    &nbsp;</td>
                <td class="style7">
                    <asp:TextBox ID="tbuserid" runat="server" Visible="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Enter
                    User Type</td>
                <td class="style4">
                    <asp:TextBox ID="tbusertype" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="RequiredFieldValidator" ControlToValidate="tbusertype"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <asp:Button ID="btninsert" runat="server" Text="Insert" 
                        onclick="btninsert_Click" />
                </td>
                <td class="style5">
                    <asp:Button ID="btnupdate" runat="server" Text="Update" 
                        onclick="btnupdate_Click" />
                    <br />
                    <br />
                </td>
            </tr>
        </table>
   
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="100%" onrowediting="GridView1_RowEditing" 
            onpageindexchanging="GridView1_PageIndexChanging" >
            <Columns>
                <asp:BoundField DataField="user_type" HeaderText="User Type" />
                <asp:BoundField DataField="isdeleted" HeaderText="Isdeleted" />
                <asp:TemplateField HeaderText="Edit">
                    <ItemTemplate>
                        <asp:Button ID="btnedit" runat="server" 
                            CommandArgument='<%# Eval("user_type_id") %>' CommandName="Edit" 
                            oncommand="btnedit_Command" Text="Edit" CausesValidation="False"  />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:Button ID="btndelete" runat="server" 
                            CommandArgument='<%# Eval("user_type_id") %>' CommandName="Delete" 
                             oncommand="btndelete_Command" Text="Delete" CausesValidation="False" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        <br />
    </p>
</asp:Content>
